
// tsconfig.json中 配置"baseUrl": "./src",帮助
import { BasicLayouts, BlankLayouts } from 'layouts'
import {
  SearchTable,
  Auth,
  Analysis,
  Monitor,
  Workplace,
  Goods,
  Login,
  ConsultingM,
  Order
} from 'pages/index';
import { RoutesProps } from './config.d'

// any[]

export const routes: RoutesProps[] = [
   {
     path: '/',
     redirect: '/blank/login'
   },
   {
     path: '/blank',
     component: BlankLayouts,
     meta: {
      userId: [4]
     },
     children: [
       {
         path: '/blank',
         redirect: '/blank/login'
       },
       {
         path: '/blank/login',
         component: Login,
         meta: {
           userId: [4]
         }
       }
     ]
   },
   {
    path: '/basic',
    component: BasicLayouts,
    meta: {
      userId: [0, 1, 2],
      title: ''
    },
    children: [
      {
        path: '/basic',
        redirect: '/basic/dashboard'
      },
      {
        path: '/basic/dashboard',
        // component:
        meta: { title: '' },
        children: [

        ]
      },
      {
        path: '/basic/Form',
        // component:
        meta: {},
        children: []
      },
      {
        path: '/basic/List',
        // component:
        meta: {},
        children: []
      },
      {
        path: '/basic/analysis',
        component: Analysis,
        meta: {
          auth: true,
          title: '分析页面',
          userId: [0, 1],
          type: 2
        }
      },
      {
        path: '/basic/consult',
        component: ConsultingM,
        meta: {
          auth: true,
          title: '咨询管理',
          userId: [0, 2],
          type: 1
        }
      },
      {
        path: '/basic/order',
        component: Order,
        meta: {
          auth: true,
          title: '订单页面',
          userId: [0],
          type: 1
        }
      }
    ]
  }
]
